from django import forms
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from .models import Readers

class ReadersCreationForm(UserCreationForm):
    class Meta(UserCreationForm.Meta):
        model = Readers
        fields = UserCreationForm.Meta.fields + ('student_id', 'contact_info',)

class ReadersLoginForm(AuthenticationForm):
    class Meta:
        model = Readers
        fields = ('username', 'password',)